﻿using Caliburn.Micro;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MusicExplorer.Internals
{
    public abstract class ViewModelBase : Screen
    {
        protected readonly INavigationService m_navigationService;

        protected ViewModelBase(INavigationService navigationService)
        {
            m_navigationService = navigationService;
        }

        public void GoBack()
        {
            m_navigationService.GoBack();
        }

        public bool CanGoBack
        {
            get
            {
                return m_navigationService.CanGoBack;
            }
        }
    }
}
